home *** CD-ROM | disk | FTP | other *** search
- currentdict userdict begin
- 60 dict /sgldict exch def
- sgldict /SGpnsh currentlinewidth def
- sgldict /SGpnsv currentlinewidth def
- sgldict /SGmup{dup SGpnsh 2 div le exch SGpnsv 2 div le or}bind def
- sgldict /SGrc{/@t exch def currentpoint 6 2 roll newpath 4 copy 4 2 roll exch moveto
- 6 -1 roll lineto lineto lineto closepath @t SGdoop moveto}bind def
- sgldict /SGpop4{pop pop pop pop}bind def
- sgldict /SGvrb[
- {SGfp
- {SGfg 6 get 0 ne
- {gsave stroke grestore}
- {gsave stroke grestore}
- ifelse}if newpath}bind
- /eofill load
- dup
- /newpath load
- 2 index
- dup
- {clip newpath}bind
- {}bind
- dup
- 2 copy
- ]def
- sgldict /SGdoop{SGvrb exch get exec}bind def
- sgldict /SGfp{SGpnsh 0 ne SGpnsv 0 ne and}bind def
- sgldict /SGfg (Rvd\001\001\000\000\177) def
- sgldict /roundrect
- {
- /fillflag exch def 2. div/rht exch def 2. div/x2 exch def
- /rwid exch def/y2 exch def/x1 exch def/y1 exch def
- y1 y2 eq x1 rwid eq rht SGmup or or{y1 x1 y2 rwid fillflag SGrc}
- {rwid x1 sub 2. div dup rht lt{/rht exch def}{pop}ifelse
- y2 y1 sub 2. div dup rht lt{/rht exch def}{pop}ifelse
- fillflag 0 eq{/rht rht SGpnsh 2 div 2 copy gt{sub def}{0 SGpop4}ifelse}if
- currentpoint newpath
- rwid x1 add 2. div y1 moveto
- rwid y1 rwid y2 rht arcto SGpop4
- rwid y2 x1 y2 rht arcto SGpop4
- x1 y2 x1 y1 rht arcto SGpop4
- x1 y1 rwid y1 rht arcto SGpop4
- closepath fillflag SGdoop moveto}ifelse
- }bind def
- sgldict /oval{0 exch 360 exch true barc}bind def
- sgldict /barc
- {
- /@1 exch def/@2 exch def/@3 exch def/@4 exch def/@5 exch def
- /@6 exch def/@7 exch def/@8 exch def gsave
- @5 @7 add 2 div @6 @8 add 2 div translate newpath 0 0 moveto
- @5 @7 sub @6 @8 sub matrix currentmatrix pop scale @1{newpath}if
- 0 0 0.5 @4 @3 arc @4 @3 sub abs 360 ge{closepath}if
- matrix setmatrix @2 SGdoop grestore
- }bind def
- sgldict /wedge
- {
- /fillflag exch def/A2 exch def/A1 exch def/R exch def/Y exch def/X exch def
- newpath
- X Y moveto
- X Y R A1 A2 arcn
- X Y lineto
- closepath fillflag SGdoop
- }bind def
- sgldict /cliprect
- {
- /Y2 exch def/X2 exch def/Y1 exch def/X1 exch def
- newpath
- X1 Y1 moveto
- X2 Y1 lineto
- X2 Y2 lineto
- X1 Y2 lineto
- X1 Y1 lineto
- closepath
- clip
- }bind def
- end begin
- 1 setlinejoin
-